package com.qianniu.napi.admin.mapper;

import com.qianniu.napi.admin.entity.Goods;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qianniu.napi.admin.entity.GoodsStore;
import com.qianniu.napi.admin.entity.Store;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 商品信息 Mapper 接口
 * </p>
 *
 * @author chenxuebin
 * @since 2018-06-23
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    public List<Goods> getBaseGoodsByMap(Map map);

    public List<Goods> getYxgoodsList(Map map);

    public int getYxgoodsCount(Map map);

    List<GoodsStore> getGoodsStoreList(Map map);

    public int getGoodsStoreCount(Map map);

    public int deletegsById(@Param("id")Long id);

    List<Store> getNonegstores(Map map);

    List<Store> getallgstores(Map map);

}